<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="wilmar" uri="/wilmar-process"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<wilmar:process.head datatable="true" tooltip="true"/>
<title><s:text name="page.title.takentilist" /></title>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						$('#tilist')
								.dataTable(
										{
											"sPaginationType" : "full_numbers",
											"sDom" : '<"top"fi>rt<"bottom"lp<"clear">',
											"aaSorting" : [ [ 0, "desc" ] ],
											"bAutoWidth" : false,
											"oLanguage" : {
												"sLengthMenu" : "<s:text name='datatable.text.lengthmenu' />",
												"sZeroRecords" : "<s:text name='datatable.text.zerorecords' />",
												"sInfo" : "<s:text name='datatable.text.info' />",
												"sInfoEmtpy" : "<s:text name='datatable.text.infoemtpy' />",
												"sInfoFiltered" : "<s:text name='datatable.text.infofiltered' />",
												"sSearch" : "<s:text name='datatable.text.search' />",
												"oPaginate" : {
													"sFirst" : "<s:text name='datatable.text.frist' />",
													"sPrevious" : "<s:text name='datatable.text.previous' />",
													"sNext" : "<s:text name='datatable.text.next' />",
													"sLast" : "<s:text name='datatable.text.last' />"
												}
											}
										});
						$('#actions img[title]').tooltip('#common_tooltip');
					});
</script>
</head>
<body>
<center><wilmar:process.logo /></center>
<table id="tilist" cellpadding="0" cellspacing="0" border="0"
	width="100%">
	<thead>
		<tr align="center">
			<th><s:text name="table.title.task.instance.id" /></th>
			<th><s:text name="table.title.task.instance.activityname" /></th>
			<th><s:text name="table.title.process.definition.name" /></th>
			<th><s:text name="table.title.process.instance.key" /></th>
			<th><s:text name="table.title.task.instance.name" /></th>
			<th><s:text name="table.title.task.instance.description" /></th>
			<th><s:text name="table.title.task.instance.createtime" /></th>
			<th><s:text name="table.title.actions" /></th>
		</tr>
	</thead>
	<tbody>
		<s:iterator value="%{taskInstanceVOList}" id="taskInstanceVOSet"
			status="voList">
			<s:url id="operateInst" action="taskInstanceAction"
				namespace="/process" method="doGetTaskDetail">
				<s:param name="processInformation.taskInstanceId">
					<s:property value="id" />
				</s:param>
				<s:param name="processInformation.processInstanceId">
					<s:property value="processInstanceId" />
				</s:param>
			</s:url>
			<s:url id="popInst" action="taskInstanceAction" namespace="/process"
				method="doPopTask">
				<s:param name="processInformation.taskInstanceId">
					<s:property value="id" />
				</s:param>
			</s:url>
			<tr align="center">
				<td><s:property value="id" /></td>
				<td><s:property value="activityName" /></td>
				<td><s:property value="processDefinitionName" /></td>
				<td><s:property value="processInstanceKey" /></td>
				<td><s:property value="name" /></td>
				<td><s:property value="description" /></td>
				<td><s:property value="createTime" /></td>
				<td>
				<div id="actions"><s:a href="%{operateInst}">
					<wilmar:process.icon icon="operate" />
				</s:a> <s:a href="%{popInst}">
					<wilmar:process.icon icon="pop" />
				</s:a></div>
				</td>
			</tr>
		</s:iterator>
	</tbody>
</table>
<div id="common_tooltip">&nbsp;</div>
</body>
</html>